import request from '@/utils/request'

// 查询失信信息列表
export function listCompanyBroken(query) {
  return request({
    url: '/broken/companyBroken/list',
    method: 'get',
    params: query
  })
}

// 查询失信信息详细
export function getCompanyBroken(id) {
  return request({
    url: '/broken/companyBroken/' + id,
    method: 'get'
  })
}

// 保存失信信息
export function saveCompanyBroken(data) {
  return request({
    url: '/broken/companyBroken/save',
    method: 'post',
    data: data
  })
}

// 删除失信信息
export function delCompanyBroken(id) {
  return request({
    url: '/broken/companyBroken/' + id,
    method: 'delete'
  })
}

// 导出失信信息
export function exportCompanyBroken(query) {
  return request({
    url: '/broken/companyBroken/export',
    method: 'get',
    params: query
  })
}
